import request from '@/utils/request'

export default {
    //---------------------------------------------------------------
    //查询当前教师有哪些代理课程
    getTeacherCourse(){
        return request({
            url: `/api/score/getTeacherCourse`,
            method: 'get'
        })
    },
    //查询教师信息
    pageStudent(current, limit, courseVo) {
        return request({
            url: `/api/score/pageStudent/${current}/${limit}`,
            method: 'post',
            data:courseVo

        })
    },

//查询学生是否成绩录入
getScoreInfo(scoreInfoDto) {
    return request({
        url: `/api/score/getScoreInfo`,
        method: 'post',
        data:scoreInfoDto

    })
},

//录入成绩
inputScore(sysScore){
    return request({
        url: `/api/score/inputScore`,
        method: 'post',
        data:sysScore

    })
},

//将课程下所有学生信息导入成绩表，成绩为0
importStudentToScore(courseVo){
    return request({
        url: `/api/score/importStudentToScore`,
        method: 'post',
        data:courseVo
    })
},

    //查询成绩信息
    pageScore(current, limit, courseVo) {
        return request({
            url: `/api/score/pageScore/${current}/${limit}`,
            method: 'post',
            data:courseVo
        })
    },
//统计分析
createCharts(courseVo) {
    return request({
        url: `/api/score/createCharts`,
        method: 'post',
        data:courseVo
    })
},

//分析折现图
createLineCharts(courseVo){
    return request({
        url: `/api/score/createLineCharts`,
        method: 'post',
        data:courseVo
    })
}


}

